package cn.asiainfo.apportion.po;

import java.util.ArrayList;
import java.util.List;

public class EPartitionInstanceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EPartitionInstanceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andInstanceIdIsNull() {
            addCriterion("INSTANCE_ID is null");
            return (Criteria) this;
        }

        public Criteria andInstanceIdIsNotNull() {
            addCriterion("INSTANCE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andInstanceIdEqualTo(Integer value) {
            addCriterion("INSTANCE_ID =", value, "instanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdNotEqualTo(Integer value) {
            addCriterion("INSTANCE_ID <>", value, "instanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdGreaterThan(Integer value) {
            addCriterion("INSTANCE_ID >", value, "instanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("INSTANCE_ID >=", value, "instanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdLessThan(Integer value) {
            addCriterion("INSTANCE_ID <", value, "instanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdLessThanOrEqualTo(Integer value) {
            addCriterion("INSTANCE_ID <=", value, "instanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdIn(List<Integer> values) {
            addCriterion("INSTANCE_ID in", values, "instanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdNotIn(List<Integer> values) {
            addCriterion("INSTANCE_ID not in", values, "instanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdBetween(Integer value1, Integer value2) {
            addCriterion("INSTANCE_ID between", value1, value2, "instanceId");
            return (Criteria) this;
        }

        public Criteria andInstanceIdNotBetween(Integer value1, Integer value2) {
            addCriterion("INSTANCE_ID not between", value1, value2, "instanceId");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("REMARK is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("REMARK is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("REMARK =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("REMARK <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("REMARK >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("REMARK >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("REMARK <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("REMARK <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("REMARK like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("REMARK not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("REMARK in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("REMARK not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("REMARK between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("REMARK not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andOfferIdIsNull() {
            addCriterion("OFFER_ID is null");
            return (Criteria) this;
        }

        public Criteria andOfferIdIsNotNull() {
            addCriterion("OFFER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andOfferIdEqualTo(Integer value) {
            addCriterion("OFFER_ID =", value, "offerId");
            return (Criteria) this;
        }

        public Criteria andOfferIdNotEqualTo(Integer value) {
            addCriterion("OFFER_ID <>", value, "offerId");
            return (Criteria) this;
        }

        public Criteria andOfferIdGreaterThan(Integer value) {
            addCriterion("OFFER_ID >", value, "offerId");
            return (Criteria) this;
        }

        public Criteria andOfferIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("OFFER_ID >=", value, "offerId");
            return (Criteria) this;
        }

        public Criteria andOfferIdLessThan(Integer value) {
            addCriterion("OFFER_ID <", value, "offerId");
            return (Criteria) this;
        }

        public Criteria andOfferIdLessThanOrEqualTo(Integer value) {
            addCriterion("OFFER_ID <=", value, "offerId");
            return (Criteria) this;
        }

        public Criteria andOfferIdIn(List<Integer> values) {
            addCriterion("OFFER_ID in", values, "offerId");
            return (Criteria) this;
        }

        public Criteria andOfferIdNotIn(List<Integer> values) {
            addCriterion("OFFER_ID not in", values, "offerId");
            return (Criteria) this;
        }

        public Criteria andOfferIdBetween(Integer value1, Integer value2) {
            addCriterion("OFFER_ID between", value1, value2, "offerId");
            return (Criteria) this;
        }

        public Criteria andOfferIdNotBetween(Integer value1, Integer value2) {
            addCriterion("OFFER_ID not between", value1, value2, "offerId");
            return (Criteria) this;
        }

        public Criteria andMaxValueIsNull() {
            addCriterion("MAX_VALUE is null");
            return (Criteria) this;
        }

        public Criteria andMaxValueIsNotNull() {
            addCriterion("MAX_VALUE is not null");
            return (Criteria) this;
        }

        public Criteria andMaxValueEqualTo(Long value) {
            addCriterion("MAX_VALUE =", value, "maxValue");
            return (Criteria) this;
        }

        public Criteria andMaxValueNotEqualTo(Long value) {
            addCriterion("MAX_VALUE <>", value, "maxValue");
            return (Criteria) this;
        }

        public Criteria andMaxValueGreaterThan(Long value) {
            addCriterion("MAX_VALUE >", value, "maxValue");
            return (Criteria) this;
        }

        public Criteria andMaxValueGreaterThanOrEqualTo(Long value) {
            addCriterion("MAX_VALUE >=", value, "maxValue");
            return (Criteria) this;
        }

        public Criteria andMaxValueLessThan(Long value) {
            addCriterion("MAX_VALUE <", value, "maxValue");
            return (Criteria) this;
        }

        public Criteria andMaxValueLessThanOrEqualTo(Long value) {
            addCriterion("MAX_VALUE <=", value, "maxValue");
            return (Criteria) this;
        }

        public Criteria andMaxValueIn(List<Long> values) {
            addCriterion("MAX_VALUE in", values, "maxValue");
            return (Criteria) this;
        }

        public Criteria andMaxValueNotIn(List<Long> values) {
            addCriterion("MAX_VALUE not in", values, "maxValue");
            return (Criteria) this;
        }

        public Criteria andMaxValueBetween(Long value1, Long value2) {
            addCriterion("MAX_VALUE between", value1, value2, "maxValue");
            return (Criteria) this;
        }

        public Criteria andMaxValueNotBetween(Long value1, Long value2) {
            addCriterion("MAX_VALUE not between", value1, value2, "maxValue");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeIsNull() {
            addCriterion("SRC_PARTITION_OBJECT_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeIsNotNull() {
            addCriterion("SRC_PARTITION_OBJECT_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeEqualTo(String value) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE =", value, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeNotEqualTo(String value) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE <>", value, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeGreaterThan(String value) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE >", value, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeGreaterThanOrEqualTo(String value) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE >=", value, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeLessThan(String value) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE <", value, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeLessThanOrEqualTo(String value) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE <=", value, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeLike(String value) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE like", value, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeNotLike(String value) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE not like", value, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeIn(List<String> values) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE in", values, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeNotIn(List<String> values) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE not in", values, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeBetween(String value1, String value2) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE between", value1, value2, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectTypeNotBetween(String value1, String value2) {
            addCriterion("SRC_PARTITION_OBJECT_TYPE not between", value1, value2, "srcPartitionObjectType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectIsNull() {
            addCriterion("SRC_PARTITION_OBJECT is null");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectIsNotNull() {
            addCriterion("SRC_PARTITION_OBJECT is not null");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectEqualTo(Integer value) {
            addCriterion("SRC_PARTITION_OBJECT =", value, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectNotEqualTo(Integer value) {
            addCriterion("SRC_PARTITION_OBJECT <>", value, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectGreaterThan(Integer value) {
            addCriterion("SRC_PARTITION_OBJECT >", value, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectGreaterThanOrEqualTo(Integer value) {
            addCriterion("SRC_PARTITION_OBJECT >=", value, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectLessThan(Integer value) {
            addCriterion("SRC_PARTITION_OBJECT <", value, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectLessThanOrEqualTo(Integer value) {
            addCriterion("SRC_PARTITION_OBJECT <=", value, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectIn(List<Integer> values) {
            addCriterion("SRC_PARTITION_OBJECT in", values, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectNotIn(List<Integer> values) {
            addCriterion("SRC_PARTITION_OBJECT not in", values, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectBetween(Integer value1, Integer value2) {
            addCriterion("SRC_PARTITION_OBJECT between", value1, value2, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionObjectNotBetween(Integer value1, Integer value2) {
            addCriterion("SRC_PARTITION_OBJECT not between", value1, value2, "srcPartitionObject");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeIsNull() {
            addCriterion("SRC_PARTITION_ITEM_TYPE is null");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeIsNotNull() {
            addCriterion("SRC_PARTITION_ITEM_TYPE is not null");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeEqualTo(String value) {
            addCriterion("SRC_PARTITION_ITEM_TYPE =", value, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeNotEqualTo(String value) {
            addCriterion("SRC_PARTITION_ITEM_TYPE <>", value, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeGreaterThan(String value) {
            addCriterion("SRC_PARTITION_ITEM_TYPE >", value, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeGreaterThanOrEqualTo(String value) {
            addCriterion("SRC_PARTITION_ITEM_TYPE >=", value, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeLessThan(String value) {
            addCriterion("SRC_PARTITION_ITEM_TYPE <", value, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeLessThanOrEqualTo(String value) {
            addCriterion("SRC_PARTITION_ITEM_TYPE <=", value, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeLike(String value) {
            addCriterion("SRC_PARTITION_ITEM_TYPE like", value, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeNotLike(String value) {
            addCriterion("SRC_PARTITION_ITEM_TYPE not like", value, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeIn(List<String> values) {
            addCriterion("SRC_PARTITION_ITEM_TYPE in", values, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeNotIn(List<String> values) {
            addCriterion("SRC_PARTITION_ITEM_TYPE not in", values, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeBetween(String value1, String value2) {
            addCriterion("SRC_PARTITION_ITEM_TYPE between", value1, value2, "srcPartitionItemType");
            return (Criteria) this;
        }

        public Criteria andSrcPartitionItemTypeNotBetween(String value1, String value2) {
            addCriterion("SRC_PARTITION_ITEM_TYPE not between", value1, value2, "srcPartitionItemType");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}